from pydantic import BaseModel
from typing import Any, Optional

from app.models import ResponseCode


class CommonResult(BaseModel):
    code: int = ResponseCode
    data: Optional[Any] = None
    message: Optional[str] = None
